package com.crm.service.impl.internalTrainingManager;

import com.crm.dao.mapper.customMapper.internalTrainingCustomManager.NxFollowCustomMapper;
import com.crm.dao.mapper.internalTrainingManager.NxFollowMapper;
import com.crm.model.entity.internalTrainingManager.NxFollow;
import com.crm.model.qo.internalTrainingManager.NxFollowQO;
import com.crm.model.vo.internalTrainingManager.NxFollowVO;
import com.crm.service.internalTrainingManager.NxFollowDbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 内训部领取客户
 * @Author renshaorong
 * @Date 2021/9/6
 */
@Service
public class NxFollowDbServiceImpl implements NxFollowDbService {

    @Autowired
    NxFollowMapper nxFollowMapper;

    @Autowired
    NxFollowCustomMapper nxFollowCustomMapper;

    @Override
    public boolean insertNxFollow(NxFollow nxFollow) {
        return nxFollowMapper.insertSelective(nxFollow)>0;
    }

    @Override
    public List<NxFollowVO> selectFollowRecordList(NxFollowQO nxFollowQO, String sortOrder,Integer dateUnit) {
        return nxFollowCustomMapper.selectFollowRecordList(nxFollowQO,sortOrder,dateUnit);
    }

}